package com.yuyuan.blog.domain.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Author: kestrel
 * @Version:1.0
 * @Date: 2024/6/20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_likes")
public class Likes {
    @TableId(value = "id",type = IdType.INPUT)
    private Long id;
    /**
     * 点赞事件id
     */
    private String type;
    /**
     * 帖子or评论id
     */
    private Long likeId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 创建时间
     */
    private LocalDateTime createTime;
}
